package com.study.design.model.createPattern.prototype;

import java.sql.Date;

/**
* @Name: LightCopySheep
* @Description: 克隆羊，实现浅复制
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-2-10 下午7:15:48 
* @Version: V1.0
 */
public class LightCopySheep implements Cloneable {
	
	private String name ;
	private Date birthday ;
	
	public LightCopySheep() {
	}

	public LightCopySheep(String name, Date birthday) {
		this.name = name;
		this.birthday = birthday;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	} 
	
	@Override
	protected Object clone() throws CloneNotSupportedException {
		return super.clone(); //使用父类Object对象的克隆方法实现对象的克隆，为浅克隆
	}
	
}
